import request from '@/utils/request';

export function login(data) {
  return request({
    url: '/xhuser/Login',
    method: 'post',
    data
  });
}

export function getXhUserList(data) {
  return request({
    url: '/XhUser/GetXhUserList',
    method: 'post',
    data
  });
}

export function getXhUserInfo(data) {
  return request({
    url: '/XhUser/GetXhUserInfo?xhuserID=' + data,
    method: 'get'
  });
}

export function saveXhUserInfo(data) {
  return request({
    url: '/XhUser/SaveXhUserInfo',
    method: 'post',
    data
  });
}

export function registerXhUserInfo(data) {
  return request({
    url: '/XhUser/RegisterXhUserInfo',
    method: 'post',
    data
  });
}


